﻿using System;
using System.Collections.Generic;

namespace MagicTraderLib.Schema
{
    public static class Series
    {
        static readonly Dictionary<string, string> Serieskvp = new Dictionary<string, string>
        {
            {"Pariah", "USG"},
            {"Return to Ravnica", "RTR"},
            {"M14", "M14"},
            {"Gatecrash", "GTC"},
            {"M13", "M13"},
            {"Revised", "3ED"},
            {"M11", "M11"},
            {"Exodus", "EXO"},
            {"Alliances", "ALL"},
            {"Ice Age", "ICE"},
            {"4th Edition", "4ED"},
            {"Fifth Dawn", "5DN"},
            {"Rise of the Eldrazi", "ROE"},
            {"Urzas Destiny","UDS"},
            {"Eventide","EVE"},
            {"Urzas Saga","USG"},
            {"Champions", "CHK"},
            {"Mirage","MIR"},
            {"Dragons Maze","MIR"},
            {"Born of the Gods","BNG"},
            {"Avacyn Restored","AVR"},
            {"Theros","THS"},
            {"Dark Ascension","DKA"},
            //{"",""},
        };

        public static string BepaalAfkorting(string serie)
        {
            if (!Serieskvp.ContainsKey(serie))
                throw new Exception(String.Format("Nog geen mapping voor serie {0}", serie));

            return Serieskvp[serie];
        }
    }
}
